package com.wave.wavesystem.ai.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum MessageRole {


    ASSISTANT("assistant"),
    ADMIN("admin");

    private final String role;

    public static MessageRole findByRole(String role) {
        for (MessageRole e : values()) {
            if (e.role.equals(role)) {
                return e;
            }
        }
        return null;
    }

}
